<center>
    <?php
    $v = Settings::model()->findByAttributes(array('key' => 'centerlogo'));

    if (strpos($v->urlPhoto, '.swf') > 0) :
        ?>
        <?php
        echo OPD_Html_tools::flash(array(
            'quality' => 'high',
            'width' => '560',
            'height' => '260',
            'src' => $v->urlPhoto,
            'wmode' => 'opaque'
        ));
        ?>

    <?php else : ?>
        <?php
        echo CHtml::image($v->urlPhoto, '', array('height' => 260, 'width' => 560));
        ?>
    <?php endif; ?>
</center>
<div id = "txtsp">
    <div class = "top_sp"></div>
    <div class = "center_sp">
        <div class = "spGridBG" name = "divSP" id = "spGrid_1">
            <?php foreach ($model as $product):
                ?>
                <div class="spGrid">
                    <div class="div1">
                        <div class="spGridTitle">
                            <a class="link_slide" href="<?php echo $product->urlByProduct; ?>">
                                <?php echo $product->title; ?>
                            </a></div>
                        <div class="clearfix">
                            <div class="home_img"><br>
                                <a href="<?php echo $product->urlByProduct; ?>" >
                                    <img border="0" src="<?php echo $product->urlPhoto; ?>">
                                </a>
                            </div>
                            <a style="cursor: pointer;text-decoration: none" rel="nofollow" class="btnorder" href="<?php echo $product->urlByProduct; ?>" id-product="<?php echo $product->post_id; ?>" money-product="<?php echo '0'; ?>">
                                <div class="addcart" >
                                    Chi tiết
                                </div>
                            </a>
                        </div>
                    </div>
                    <div class="spGridBottom1"></div>
                </div>
            <?php endforeach; ?>
            <div style="clear: both"></div>
        </div>
    </div>
    <div class="bottom_sp"></div>
</div>


